package ast;

import compiler.OutputFormatter;

public class IntegerExpr extends Expression {

    private int value = 0;

    public IntegerExpr(int v) {
        setValue(v);
    }

    @Override
    public void genC(OutputFormatter of) {
        of.output(Integer.toString(value));
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
